﻿#region Using Statements
using System;
using System.Diagnostics;
using System.Runtime.Serialization;
#endregion

namespace DirectZZT.Shared.Core
{
    /// <summary>
    /// Base class for any object used by DirectZZT.
    /// </summary>
    [Serializable()]
    [DebuggerDisplay("BaseObject. Type = {GetType().Name}, Name = {Name}")]
    public class BaseObject : IDisposable
    {
        #region Properties

        /// <summary>
        /// Gets/sets the name of this object (optional).
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// Gets/sets tags for this object.
        /// </summary>
        public string[] Tags { get; set; }
        /// <summary>
        /// Returns whether or not this object should be serialized.
        /// </summary>
        public virtual bool ShouldSerialize { get { return true; } }

        #endregion

        #region Constructors

        /// <summary>
        /// Constructor
        /// </summary>
        public BaseObject()
        {

        }

        #endregion

        #region IDisposable Members

        /// <summary>
        /// Called when this object is disposed.
        /// </summary>
        public virtual void Dispose()
        {

        }

        #endregion
    }
}
